package com.yeyks.common.appcommon.param.order;

import com.yeyks.common.appcommon.result.CommonAuthHeader;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author: dagny
 * @date: 2019/8/14 0014 15:51
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel(description = "抢单输入参数")
public class AddGrabOrderParam extends CommonAuthHeader implements Serializable {

    private static final long serialVersionUID = 944193987770686546L;

    @ApiModelProperty(value = "C端用户ID")
    @NotNull(message = "对应的操作用户id不能为空")
    private Integer userId;

    @ApiModelProperty(value = "用户发布时间")
    @NotNull(message = "用户发布时间不能为空")
    private Long timestamp;
}
